import Vue from 'vue'
import VueI18n from 'vue-i18n'
import Cookie from 'js-cookie'
import elementZH from 'element-ui/lib/locale/lang/zh-CN'
import elementEN from 'element-ui/lib/locale/lang/en'
import customZH from './zh'
import customEN from './en'
Vue.use(VueI18n)
export default new VueI18n({
  locale: Cookie.get('language') || 'zh', // 多语言类型 存cookie持久化
  messages: { // 语言包
    zh: { ...elementZH, ...customZH },
    en: { ...elementEN, ...customEN }
  }
})
